package com.maykk.Demo05;
import java.util.Scanner;
public class PersonTest {
    public static void main(String[] args) {
        Person person = new Person();
//        person.setInfo("小马", 18);
        System.out.println("输入名字：");
        person.name = new Scanner(System.in).next();
        System.out.println("请输入年龄：");
        person.age = new Scanner(System.in).nextInt();
        person.eat();
    }
}
